package com.cn.mmd.model;

import java.util.ArrayList;
import java.util.List;

public class StudentAppExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public StudentAppExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andStudentidIsNull() {
            addCriterion("studentId is null");
            return (Criteria) this;
        }

        public Criteria andStudentidIsNotNull() {
            addCriterion("studentId is not null");
            return (Criteria) this;
        }

        public Criteria andStudentidEqualTo(String value) {
            addCriterion("studentId =", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotEqualTo(String value) {
            addCriterion("studentId <>", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidGreaterThan(String value) {
            addCriterion("studentId >", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidGreaterThanOrEqualTo(String value) {
            addCriterion("studentId >=", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidLessThan(String value) {
            addCriterion("studentId <", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidLessThanOrEqualTo(String value) {
            addCriterion("studentId <=", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidLike(String value) {
            addCriterion("studentId like", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotLike(String value) {
            addCriterion("studentId not like", value, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidIn(List<String> values) {
            addCriterion("studentId in", values, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotIn(List<String> values) {
            addCriterion("studentId not in", values, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidBetween(String value1, String value2) {
            addCriterion("studentId between", value1, value2, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentidNotBetween(String value1, String value2) {
            addCriterion("studentId not between", value1, value2, "studentid");
            return (Criteria) this;
        }

        public Criteria andStudentnameIsNull() {
            addCriterion("studentName is null");
            return (Criteria) this;
        }

        public Criteria andStudentnameIsNotNull() {
            addCriterion("studentName is not null");
            return (Criteria) this;
        }

        public Criteria andStudentnameEqualTo(String value) {
            addCriterion("studentName =", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotEqualTo(String value) {
            addCriterion("studentName <>", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameGreaterThan(String value) {
            addCriterion("studentName >", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameGreaterThanOrEqualTo(String value) {
            addCriterion("studentName >=", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameLessThan(String value) {
            addCriterion("studentName <", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameLessThanOrEqualTo(String value) {
            addCriterion("studentName <=", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameLike(String value) {
            addCriterion("studentName like", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotLike(String value) {
            addCriterion("studentName not like", value, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameIn(List<String> values) {
            addCriterion("studentName in", values, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotIn(List<String> values) {
            addCriterion("studentName not in", values, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameBetween(String value1, String value2) {
            addCriterion("studentName between", value1, value2, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentnameNotBetween(String value1, String value2) {
            addCriterion("studentName not between", value1, value2, "studentname");
            return (Criteria) this;
        }

        public Criteria andStudentsexIsNull() {
            addCriterion("studentSex is null");
            return (Criteria) this;
        }

        public Criteria andStudentsexIsNotNull() {
            addCriterion("studentSex is not null");
            return (Criteria) this;
        }

        public Criteria andStudentsexEqualTo(String value) {
            addCriterion("studentSex =", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexNotEqualTo(String value) {
            addCriterion("studentSex <>", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexGreaterThan(String value) {
            addCriterion("studentSex >", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexGreaterThanOrEqualTo(String value) {
            addCriterion("studentSex >=", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexLessThan(String value) {
            addCriterion("studentSex <", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexLessThanOrEqualTo(String value) {
            addCriterion("studentSex <=", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexLike(String value) {
            addCriterion("studentSex like", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexNotLike(String value) {
            addCriterion("studentSex not like", value, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexIn(List<String> values) {
            addCriterion("studentSex in", values, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexNotIn(List<String> values) {
            addCriterion("studentSex not in", values, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexBetween(String value1, String value2) {
            addCriterion("studentSex between", value1, value2, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentsexNotBetween(String value1, String value2) {
            addCriterion("studentSex not between", value1, value2, "studentsex");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordIsNull() {
            addCriterion("studentPassword is null");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordIsNotNull() {
            addCriterion("studentPassword is not null");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordEqualTo(String value) {
            addCriterion("studentPassword =", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordNotEqualTo(String value) {
            addCriterion("studentPassword <>", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordGreaterThan(String value) {
            addCriterion("studentPassword >", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordGreaterThanOrEqualTo(String value) {
            addCriterion("studentPassword >=", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordLessThan(String value) {
            addCriterion("studentPassword <", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordLessThanOrEqualTo(String value) {
            addCriterion("studentPassword <=", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordLike(String value) {
            addCriterion("studentPassword like", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordNotLike(String value) {
            addCriterion("studentPassword not like", value, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordIn(List<String> values) {
            addCriterion("studentPassword in", values, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordNotIn(List<String> values) {
            addCriterion("studentPassword not in", values, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordBetween(String value1, String value2) {
            addCriterion("studentPassword between", value1, value2, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentpasswordNotBetween(String value1, String value2) {
            addCriterion("studentPassword not between", value1, value2, "studentpassword");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitIsNull() {
            addCriterion("studentHeadPortrait is null");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitIsNotNull() {
            addCriterion("studentHeadPortrait is not null");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitEqualTo(String value) {
            addCriterion("studentHeadPortrait =", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitNotEqualTo(String value) {
            addCriterion("studentHeadPortrait <>", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitGreaterThan(String value) {
            addCriterion("studentHeadPortrait >", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitGreaterThanOrEqualTo(String value) {
            addCriterion("studentHeadPortrait >=", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitLessThan(String value) {
            addCriterion("studentHeadPortrait <", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitLessThanOrEqualTo(String value) {
            addCriterion("studentHeadPortrait <=", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitLike(String value) {
            addCriterion("studentHeadPortrait like", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitNotLike(String value) {
            addCriterion("studentHeadPortrait not like", value, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitIn(List<String> values) {
            addCriterion("studentHeadPortrait in", values, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitNotIn(List<String> values) {
            addCriterion("studentHeadPortrait not in", values, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitBetween(String value1, String value2) {
            addCriterion("studentHeadPortrait between", value1, value2, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentheadportraitNotBetween(String value1, String value2) {
            addCriterion("studentHeadPortrait not between", value1, value2, "studentheadportrait");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberIsNull() {
            addCriterion("studentPhoneNumber is null");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberIsNotNull() {
            addCriterion("studentPhoneNumber is not null");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberEqualTo(String value) {
            addCriterion("studentPhoneNumber =", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberNotEqualTo(String value) {
            addCriterion("studentPhoneNumber <>", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberGreaterThan(String value) {
            addCriterion("studentPhoneNumber >", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberGreaterThanOrEqualTo(String value) {
            addCriterion("studentPhoneNumber >=", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberLessThan(String value) {
            addCriterion("studentPhoneNumber <", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberLessThanOrEqualTo(String value) {
            addCriterion("studentPhoneNumber <=", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberLike(String value) {
            addCriterion("studentPhoneNumber like", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberNotLike(String value) {
            addCriterion("studentPhoneNumber not like", value, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberIn(List<String> values) {
            addCriterion("studentPhoneNumber in", values, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberNotIn(List<String> values) {
            addCriterion("studentPhoneNumber not in", values, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberBetween(String value1, String value2) {
            addCriterion("studentPhoneNumber between", value1, value2, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andStudentphonenumberNotBetween(String value1, String value2) {
            addCriterion("studentPhoneNumber not between", value1, value2, "studentphonenumber");
            return (Criteria) this;
        }

        public Criteria andMynicknameIsNull() {
            addCriterion("myNickName is null");
            return (Criteria) this;
        }

        public Criteria andMynicknameIsNotNull() {
            addCriterion("myNickName is not null");
            return (Criteria) this;
        }

        public Criteria andMynicknameEqualTo(String value) {
            addCriterion("myNickName =", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotEqualTo(String value) {
            addCriterion("myNickName <>", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameGreaterThan(String value) {
            addCriterion("myNickName >", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameGreaterThanOrEqualTo(String value) {
            addCriterion("myNickName >=", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameLessThan(String value) {
            addCriterion("myNickName <", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameLessThanOrEqualTo(String value) {
            addCriterion("myNickName <=", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameLike(String value) {
            addCriterion("myNickName like", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotLike(String value) {
            addCriterion("myNickName not like", value, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameIn(List<String> values) {
            addCriterion("myNickName in", values, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotIn(List<String> values) {
            addCriterion("myNickName not in", values, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameBetween(String value1, String value2) {
            addCriterion("myNickName between", value1, value2, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMynicknameNotBetween(String value1, String value2) {
            addCriterion("myNickName not between", value1, value2, "mynickname");
            return (Criteria) this;
        }

        public Criteria andMybirthdIsNull() {
            addCriterion("myBirthd is null");
            return (Criteria) this;
        }

        public Criteria andMybirthdIsNotNull() {
            addCriterion("myBirthd is not null");
            return (Criteria) this;
        }

        public Criteria andMybirthdEqualTo(String value) {
            addCriterion("myBirthd =", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotEqualTo(String value) {
            addCriterion("myBirthd <>", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdGreaterThan(String value) {
            addCriterion("myBirthd >", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdGreaterThanOrEqualTo(String value) {
            addCriterion("myBirthd >=", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdLessThan(String value) {
            addCriterion("myBirthd <", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdLessThanOrEqualTo(String value) {
            addCriterion("myBirthd <=", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdLike(String value) {
            addCriterion("myBirthd like", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotLike(String value) {
            addCriterion("myBirthd not like", value, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdIn(List<String> values) {
            addCriterion("myBirthd in", values, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotIn(List<String> values) {
            addCriterion("myBirthd not in", values, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdBetween(String value1, String value2) {
            addCriterion("myBirthd between", value1, value2, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andMybirthdNotBetween(String value1, String value2) {
            addCriterion("myBirthd not between", value1, value2, "mybirthd");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureIsNull() {
            addCriterion("personAlizedSignature is null");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureIsNotNull() {
            addCriterion("personAlizedSignature is not null");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureEqualTo(String value) {
            addCriterion("personAlizedSignature =", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotEqualTo(String value) {
            addCriterion("personAlizedSignature <>", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureGreaterThan(String value) {
            addCriterion("personAlizedSignature >", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureGreaterThanOrEqualTo(String value) {
            addCriterion("personAlizedSignature >=", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureLessThan(String value) {
            addCriterion("personAlizedSignature <", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureLessThanOrEqualTo(String value) {
            addCriterion("personAlizedSignature <=", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureLike(String value) {
            addCriterion("personAlizedSignature like", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotLike(String value) {
            addCriterion("personAlizedSignature not like", value, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureIn(List<String> values) {
            addCriterion("personAlizedSignature in", values, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotIn(List<String> values) {
            addCriterion("personAlizedSignature not in", values, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureBetween(String value1, String value2) {
            addCriterion("personAlizedSignature between", value1, value2, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andPersonalizedsignatureNotBetween(String value1, String value2) {
            addCriterion("personAlizedSignature not between", value1, value2, "personalizedsignature");
            return (Criteria) this;
        }

        public Criteria andViewednumIsNull() {
            addCriterion("viewedNum is null");
            return (Criteria) this;
        }

        public Criteria andViewednumIsNotNull() {
            addCriterion("viewedNum is not null");
            return (Criteria) this;
        }

        public Criteria andViewednumEqualTo(Integer value) {
            addCriterion("viewedNum =", value, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumNotEqualTo(Integer value) {
            addCriterion("viewedNum <>", value, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumGreaterThan(Integer value) {
            addCriterion("viewedNum >", value, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumGreaterThanOrEqualTo(Integer value) {
            addCriterion("viewedNum >=", value, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumLessThan(Integer value) {
            addCriterion("viewedNum <", value, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumLessThanOrEqualTo(Integer value) {
            addCriterion("viewedNum <=", value, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumIn(List<Integer> values) {
            addCriterion("viewedNum in", values, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumNotIn(List<Integer> values) {
            addCriterion("viewedNum not in", values, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumBetween(Integer value1, Integer value2) {
            addCriterion("viewedNum between", value1, value2, "viewednum");
            return (Criteria) this;
        }

        public Criteria andViewednumNotBetween(Integer value1, Integer value2) {
            addCriterion("viewedNum not between", value1, value2, "viewednum");
            return (Criteria) this;
        }

        public Criteria andCommentnumIsNull() {
            addCriterion("CommentNum is null");
            return (Criteria) this;
        }

        public Criteria andCommentnumIsNotNull() {
            addCriterion("CommentNum is not null");
            return (Criteria) this;
        }

        public Criteria andCommentnumEqualTo(Integer value) {
            addCriterion("CommentNum =", value, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumNotEqualTo(Integer value) {
            addCriterion("CommentNum <>", value, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumGreaterThan(Integer value) {
            addCriterion("CommentNum >", value, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("CommentNum >=", value, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumLessThan(Integer value) {
            addCriterion("CommentNum <", value, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumLessThanOrEqualTo(Integer value) {
            addCriterion("CommentNum <=", value, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumIn(List<Integer> values) {
            addCriterion("CommentNum in", values, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumNotIn(List<Integer> values) {
            addCriterion("CommentNum not in", values, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumBetween(Integer value1, Integer value2) {
            addCriterion("CommentNum between", value1, value2, "commentnum");
            return (Criteria) this;
        }

        public Criteria andCommentnumNotBetween(Integer value1, Integer value2) {
            addCriterion("CommentNum not between", value1, value2, "commentnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumIsNull() {
            addCriterion("DownloadNum is null");
            return (Criteria) this;
        }

        public Criteria andDownloadnumIsNotNull() {
            addCriterion("DownloadNum is not null");
            return (Criteria) this;
        }

        public Criteria andDownloadnumEqualTo(Integer value) {
            addCriterion("DownloadNum =", value, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumNotEqualTo(Integer value) {
            addCriterion("DownloadNum <>", value, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumGreaterThan(Integer value) {
            addCriterion("DownloadNum >", value, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumGreaterThanOrEqualTo(Integer value) {
            addCriterion("DownloadNum >=", value, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumLessThan(Integer value) {
            addCriterion("DownloadNum <", value, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumLessThanOrEqualTo(Integer value) {
            addCriterion("DownloadNum <=", value, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumIn(List<Integer> values) {
            addCriterion("DownloadNum in", values, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumNotIn(List<Integer> values) {
            addCriterion("DownloadNum not in", values, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumBetween(Integer value1, Integer value2) {
            addCriterion("DownloadNum between", value1, value2, "downloadnum");
            return (Criteria) this;
        }

        public Criteria andDownloadnumNotBetween(Integer value1, Integer value2) {
            addCriterion("DownloadNum not between", value1, value2, "downloadnum");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}